using System;
using System.Collections;

namespace Com.CMS263.PO
{
	#region VoteTopic

	/// <summary>
	/// VoteTopic object for NHibernate mapped table 'VoteTopic'.
	/// </summary>
	public class VoteTopic
	{
		#region Member Variables
		
		protected int _id;
		protected string _title;
		protected DateTime _addDate;
		protected int _clickCount;
		protected int _sortId;
		protected int _listId;
        protected int _voteType;
		#endregion

		#region Constructors

		public VoteTopic() { }

		public VoteTopic( string title, DateTime addDate, int clickCount, int sortId, int listId,int voteType )
		{
			this._title = title;
			this._addDate = addDate;
			this._clickCount = clickCount;
			this._sortId = sortId;
			this._listId = listId;
            this._voteType = voteType;
		}

		#endregion

		#region Public Properties

		public virtual int Id
		{
			get {return _id;}
			set {_id = value;}
		}

		public  virtual string Title
		{
			get { return _title; }
			set
			{
				if ( value != null && value.Length > 500)
					throw new ArgumentOutOfRangeException("Invalid value for Title", value, value.ToString());
				_title = value;
			}
		}

		public  virtual DateTime AddDate
		{
			get { return _addDate; }
			set { _addDate = value; }
		}

		public  virtual int ClickCount
		{
			get { return _clickCount; }
			set { _clickCount = value; }
		}

		public  virtual int SortId
		{
			get { return _sortId; }
			set { _sortId = value; }
		}

		public  virtual int ListId
		{
			get { return _listId; }
			set { _listId = value; }
		}
        public virtual int VoteType
        {
            get { return _voteType; }
            set { _voteType = value; }
        }

		

		#endregion
	}
	#endregion
}